package ch9.thread1;

public class MyThread extends Thread {
	public MyThread(String name) {
		super(name);
	}

	// run
	@Override
	public void run() {
		for (int i = 1; i <= 20; i++) {
			System.out.println(super.getName() + "print " + i);
			// sleep(10)
			super.yield();//
		}
	}
}
